package com.elitetyc.eliteim.common.model.impl;

import com.elitetyc.eliteim.common.model.IMUserInfo;

/**
 * @author yuanchao.tan
 * @version 1.0
 * @description TODO
 * @Date 2021/9/17 11:13
 */
public  class IMUserInfoImpl implements IMUserInfo {

    private String userId;

    private String userName;

    @Override
    public String getUserId() {
        return this.userId;
    }

    @Override
    public String getUserName() {
        return this.userName;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public IMUserInfoImpl(String userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }

    public static IMUserInfoImpl buildUserInfo(IMUserInfo imUserInfo){
        return new IMUserInfoImpl(imUserInfo.getUserId(), imUserInfo.getUserName());
    }
}